package mil.af.amc.adpetracker.service;

import mil.af.amc.adpetracker.model.Authority;

import java.util.List;

/**
 * Interface for Authority Service
 *
 * @author TSgt Jason Ferguson
 */

public interface AuthorityService {

    /**
     * Return a list of all Authority objects
     *
     * @return  a List of all Authority objects
     */
    public List<Authority> getAll();

    /**
     * Get an Authority by it's String name (i.e. "ROLE_USER")
     *
     * @param name
     * @return
     */
    public Authority getAuthorityByName(String name);

}
